#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
#include "priority_queue.h"
namespace zkf
{
	void test1()
	{
		priority_queue<int> as;
		as.push(1);
		as.push(2);
		as.push(3);
		as.push(4);
		as.push(5);
		as.push(6);
		as.push(7);
		as.push(8);
		for (size_t i = 0; i < as.size(); i++)
		{
			cout << as[i] << " ";
		}
		cout << endl;
		as.pop();
		as.pop();
		as.pop();
		for (size_t i = 0; i < as.size(); i++)
		{
			cout << as[i] << " ";
		}
		cout << endl;
		cout << as.top() << endl;
		vector<int> qe;
		qe.push_back(3);
		qe.push_back(2);
		qe.push_back(6);
		qe.push_back(4);
		qe.push_back(9);
		priority_queue<int> as2(qe.begin(),qe.end());
		for (size_t i = 0; i < as2.size(); i++)
		{
			cout << as2[i] << " ";
		}
		cout << endl;
	}
}
int main()
{
	zkf::test1();
	return 0;
}